const fs = require("fs");


const useRouters = (app) => {
  fs.readdirSync(__dirname).forEach(item => {
    if (item !== "index.js") {
      const router = require(`./${item}`);
      app.use(router)
    }
  })
}